package view;


import java.awt.Color;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

import javax.swing.JButton;
import javax.swing.JPopupMenu;

public class LevelUpMenu extends JPopupMenu implements ActionListener {
	
	private JButton[] stats;
	int points;

	public LevelUpMenu() {
		setSize(200,300);
		setLocation(0,0);
		setBackground(Color.BLACK);
		setForeground(Color.RED);
		
		points = 5;
		
	}

	@Override
	public void actionPerformed(ActionEvent arg0) {
		if ( points == 0 ) {
			this.setVisible(false);
			points = 5;
		}
		else {
			points--;
		}
	}
	
	
	
}
